using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.EventSystems;
using UnityEngine.Events;


public class Main : MonoBehaviour
{
    public static GM m_GM;
    public static PlayerObject m_PlayerSelf;
    public GM GMPrefab;
    public PlayerObject PlayerPrefab;
    private void Awake()
    {
        if(!m_GM)
        {
            m_GM = Instantiate(GMPrefab);
            DontDestroyOnLoad(m_GM.gameObject);
        }
        if(!m_PlayerSelf)
        {
            m_PlayerSelf = Instantiate(PlayerPrefab);
            DontDestroyOnLoad(m_PlayerSelf.gameObject);
        }
    }
    void Start()
    {
        
    } 

    // Update is called once per frame
    void Update()
    {
    }
}
